Пример #1
0
        public Client(string appId, string key, string url)
        {
            this.appId = appId;
            this.key = key;
            this.rest = new RestClient (url);

            this.Auth = new Auth (this);
            this.System = new System (this);
        }
Пример #2
0
 private void Window_Closing_1(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (mouseHook != null)
     {
         mouseHook.Dispose();
     }
     FileStream fs=new FileStream(@"config.cfg",FileMode.Create);
     BinaryFormatter formatter = new BinaryFormatter();
       		formatter.Serialize(fs, _myKeys);
       		fs.Close();
 }
Пример #3
0
 private void Window_LButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left)
     {
         this.DragMove();
     }
 }
Пример #4
0
 private void notifyIcon_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         if (this.Visibility == Visibility.Visible)
         {
             this.Visibility = Visibility.Hidden;
         }
         else
         {
             this.Visibility = Visibility.Visible;
             this.Activate();
         }
     }
 }