Ejemplo n.º 1
0
 internal void CookieInitBase(bool createAsApplication, string title)
 {
     if(createAsApplication) {
         Application application = new Application();
         application.Run(new CookieWindow(true,title));
     } else {
         CookieWindow cookie = new CookieWindow(true,title);
         cookie.Show();
     }
 }
Ejemplo n.º 2
0
 internal void SocketCookieInitBase(bool createAsApplication,string title,bool isClient,string address, string port)
 {
     if(createAsApplication) {
         if(isClient) {
             Application application = new Application();
             application.Run(new CookieWindow(true,title,true,address,port));
         } else {
             Application application = new Application();
             application.Run(new CookieWindow(true,title,false,address,port));
         }
     } else {
         if(isClient) {
             CookieWindow cookiewindow = new CookieWindow(true,title,true,address,port);
             cookiewindow.Show();
         } else {
             CookieWindow cookiewindow = new CookieWindow(true,title,false,address,port);
             cookiewindow.Show();
         }
     }
 }