Esempio n. 1
0
        public AudioWin(NullUtilVk api)
        {
            MainApi = api;


            //Background file size getter
            FileSizeGetter         = new BackgroundWorker();
            FileSizeGetter.DoWork += FileSizeGetter_DoWork;
            SizeGetterToDo         = new List <VkNet.Model.Attachments.Audio>();
            //Configs & vars
            TabPageBodies = new List <AudioTabPageBody>();
            AudioGetStep  = (int)MainApi.Config.GetValue(ConfigDefault.AudioPrecacheStep);


            TabPageBodies.Add(new AudioTabPageBody());
        }
Esempio 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();
        }
Esempio n. 3
0
        private void MainWindow_Load(object sender, EventArgs e)
        {
            MainWindow_Resize(this, EventArgs.Empty);

            ConsoleWindow = new ConsoleWin();
#warning Kostil
            ConsoleWindow.Show();
            ConsoleWindow.Hide();
            //Making console output method
            MainApi = new NullUtilVk(ConsoleWindow.WriteConsole, true);

            MainApi.MainWin.ShowMBox           += MainWin_ShowMBox;
            MainApi.MainWin.UpdateInstanceList += MainWin_UpdateInstanceList;
            MainApi.MainWin.UpdateOnLogin      += MainWin_UpdateOnLogin;
            MainApi.MainWin.UpdateTextboxex    += MainWin_UpdateTextboxex;
            //Event to handle console user input
            ConsoleWindow.UserCommand += HandleUserCommand;

            AudioWin = new Audio(MainApi);
            Savable.Add("audio_win", AudioWin);

            MainApi.MainWin.LoadAuthInstances();
            MainApi.MainWin.CheckAuthorization();
        }
Esempio n. 4
0
 internal MainWin(NullUtilVk Api)
 {
     MainApi = Api;
 }
Esempio n. 5
0
 public Options(NullUtilVk MainApi)
 {
     this.MainApi = MainApi;
     InitializeComponent();
 }