private void LaporanLabaRugiView_Load(object sender, EventArgs e) { numericUpDownTahun.Value = DateTime.Now.Year; comboBoxBulan.SelectedItem = CultureInfo.CurrentCulture.DateTimeFormat .MonthNames[DateTime.Now.AddMonths(-1).Month]; OnLoadData?.Invoke(sender, e); ActiveControl = buttonTutup; }
public IHttpActionResult GetOnLoadData(string username) // Get On Load Data (Reference Data and User Data) { RefData refData = new RefData(); UserDetails userDetails = new UserDetails(username); OnLoadData onLoadData = new OnLoadData(refData, userDetails); return(Ok(onLoadData)); }
private IEnumerator LoadUpdateConfig(string fullPath, bool isLocal, OnLoadData ret) { Debug.Log("LoadUpdateConfig " + fullPath); byte[] bytes = new byte[0]; bool loadErr = false; if (isLocal) { if (File.Exists(fullPath)) { bytes = File.ReadAllBytes(fullPath); } else { loadErr = true; } } else { WWW www = new WWW(fullPath); yield return(www); if (www != null) { bytes = www.bytes; www.Dispose(); } else { loadErr = true; } } if (loadErr) { ret("", string.Format("Load client www error, path:{0}", fullPath)); yield break; } else { ret(System.Text.Encoding.ASCII.GetString(bytes)); } }
private void RoleView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); ActiveControl = crudcButtons.ButtonTutup; }
private void KasAwalView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); }
private void PengaturanView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); ActiveControl = buttonCancel; }
private void LaporanTransaksiHariIniView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); ActiveControl = buttonTutup; }
private void StokBarangView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); ActiveControl = buttonTutup; }
private void LaporanReturnPembelianView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); ActiveControl = buttonsDeletePrintDetail.ButtonTutup; }
private void PembelianView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); }
internal static void LoadData() => OnLoadData?.Invoke();
private void BarangView_Load(object sender, EventArgs e) { OnLoadData?.Invoke(sender, e); listDataGrid.SetLastColumnFill("nama"); ActiveControl = buttonTutup; }