Doubts in developing systems Desktop C #

0

I'm starting to program in C # and I'm having some doubts. I would like to know where to start, for example:

I have a desktop system that I use in one company, I needed to develop another one in the same pattern. It has for example this dialog box below and I do not know how to create it, because I can not import the Windows library. here in my I can only make the message:

MessageBox.Show ("");

I think it's very ugly too .. kk How do I make you like this other model?

    
asked by anonymous 10.04.2015 / 15:38

1 answer

3

I started a project in Blend for Visual Studio 2013 generating the message by dialog. In the initial screen I put an unnamed button with the inscription "Test":

Afterthat,IselectedthebuttonandsearchedthebuttonpropertiesfortheeventsthatIcanputonthebutton.Bydouble-clicking"Click", Blend created the event for me as shown below:

Finally,mysourcelookedlikethis:

MainPage.xaml.cs

usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Runtime.InteropServices.WindowsRuntime;usingWindows.Foundation;usingWindows.Foundation.Collections;usingWindows.UI.Xaml;usingWindows.UI.Xaml.Controls;usingWindows.UI.Xaml.Controls.Primitives;usingWindows.UI.Xaml.Data;usingWindows.UI.Xaml.Input;usingWindows.UI.Xaml.Media;usingWindows.UI.Xaml.Navigation;usingWindows.UI.Popups;//Nãoesqueçadeadicionaresteusing//TheBlankPageitemtemplateisdocumentedathttp://go.microsoft.com/fwlink/?LinkId=234238namespaceApp1{///<summary>///AnemptypagethatcanbeusedonitsownornavigatedtowithinaFrame.///</summary>publicsealedpartialclassMainPage:Page{publicMainPage(){this.InitializeComponent();}privateasyncvoidButton_Click(objectsender,Windows.UI.Xaml.RoutedEventArgse){//Aquicrioumamensagemdedialogeaexibo.MessageDialogdialog=newMessageDialog("Teste", "Teste Dialog");
            await dialog.ShowAsync();
        }
    }
}

The result was this:

    
10.04.2015 / 17:58