This is a mirror of official site: http://jasper-net.blogspot.com/

How we can write on C# in Linux: Implementing PanelApplet to Gnom Desktop

| Sunday, March 7, 2010
Table of content

   * Introduction
   * Part I – Theory
         o The Platform-Independent Nature of .NET
         o CLI Distributions
         o What’s Mono?
               + Components
               + Compatibility
         o Development
               + Available IDE
               + MonoDevelop
         o Ubuntu
         o Gnome
         o Gtk#
         o
   * Part II – Practice
         o What's An Applet?
               + Bonobo configuration file
               + PanelApplet class from GTK#
               + Register applet in application
         o Using weather web-service
               + WSDL
               + Using code
         +
         o User interface
               + Window
               + The tree of countries
         o Store settings with Gconf
         o Installing applet
         o Using applet
         o Summary
   * Conclusion
   * Resources
   * History

Introduction

This article describes how we can use our programming skills on the .NET framework to implement Gnome panel applet. The whole development process was conducted in the Ubuntu operating system with usage of IDE MonoDevelop, so you can find some information about this OS and IDE.

The first part of the article is information collected from various sources (such as books and sites).The second part is a description of applet creation that display current weather in selected location.

The main idea of the article is to interest the developers in working over the platform-independent code. All the references you can find in the end of the article.

Part I – Theory

The Platform-Independent Nature of .NET

I think many of .NET developers, which have experience in previous development tools and technologies such as Microsoft Foundation Classes, Active Template Library, Component Object Model, may be surprised by the fact that .NET Framework is platform-independent . We can compile and execute .NET assemblies not only under Microsoft Windows OS. Using of open source .NET implementation such as Mono, Portable.NET. makes it possible.

Cross-platform applications, written with the help of these .NET implementations, are not necessarily simple console applications. We can use ADO.NET, ASP.NET, XML web service and many other advantages of the core namespaces and language features.

The way in which .NET’s cross-platform nature is achieved is different from the approach taking by Sun Microsystems with the handling of the Java programming platform. Unlike Java,Microsoft itself does not provide installers of .NET for Mac, Linux, etc. Rather, Microsoft has released a set of formalized specifications that other entities can use as a road map for building.NET distributions for their platform of choice:

   * ECMA-334, which defines the syntax and semantics of the C# programming language
   * ECMA-335, which defines numerous details of the .NET platform

Read more: Codeproject

Posted via email from jasper22's posterous

0 comments: