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()); }
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(); }
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(); }
internal MainWin(NullUtilVk Api) { MainApi = Api; }
public Options(NullUtilVk MainApi) { this.MainApi = MainApi; InitializeComponent(); }