protected virtual void UpdateTaskbarProgress(TaskbarProgress.TaskbarStates state, int?percentComplete) { if (Program.MainWindow != null) { Program.MainWindow.UpdateTaskbarProgress(state, percentComplete); } }
protected override void UpdateTaskbarProgress(TaskbarProgress.TaskbarStates state, int?percentComplete) { _taskbarProgress.SetState(Handle, state); if (percentComplete.HasValue) { _taskbarProgress.SetValue(Handle, percentComplete.Value, 100); } }
private void Tabs_SelectedIndexChanged(object sender, EventArgs e) { if (!ThisTabInfo()) { TaskbarProgress.TaskbarStates state = (TaskbarProgress.TaskbarStates)Enum.Parse(typeof(TaskbarProgress.TaskbarStates), "NoProgress"); TaskbarProgress.SetState(Handle, state); if (state != TaskbarProgress.TaskbarStates.Indeterminate && state != TaskbarProgress.TaskbarStates.NoProgress) { TaskbarProgress.SetValue(Handle, 100, 100); } } }
private static void VProgressBarTaskBarSetState(TaskbarProgress.TaskbarStates state) { TaskbarProgress.SetState(App.WinHandler, state); }