Exemplo n.º 1
0
 //Before this closes
 private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (AudioWin != null)
     {
         AudioWin.SaveState();
     }
     foreach (var item in Savable)
     {
         var mda = item.Value;
         (mda as Form).Hide();
     }
     this.Hide();
     MainApi.Dispose();
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WindowWidth = 120;
            Action <NullUtilVK.Enums.SafetyEnums.MessageStatus, string> OutDelegate = PrintConsole;
            var    NullApi = new NullUtilVk(OutDelegate);
            string read    = String.Empty;

            while (true)
            {
                read = Console.ReadLine().ToLower();
                if (read == "exit" || read == "quit")
                {
                    break;
                }
                NullApi.RawCommand(read);
            }
            NullApi.Dispose();
        }